@import './variables.scss';

.fy-layout{
  display: flex;
  height: 100%;

  > .fy-layout-wrapper{
    flex: 1;
    display: flex;
    flex-direction: column;
    > .fy-content{
      flex: 1;
    }
  }
}

.fy-sidebar{
  display: flex;
  flex-direction: column;
  width: $defaultSideBarWidth;
  transition: all .3s ease-out;
  .fy-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    font-size: 20px;
    font-weight: bold;
    font-family: FangSong_GB2312;
    background: #777;
    color: #fff;
    white-space: nowrap;
    height: $defaultHeaderHeight;
    box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 8%);
  }
  .fy-sidebar-menu{
    background: $defaultMenuBg;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .fy-sidebar-toggle{
    height: 40px;
    background: plum;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0px -2px 4px 0px rgb(0 0 0 / 8%);
    .toggle{
      width: $defaultSideBarMinWidth;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  .el-menu{
    border: none;
  }
  .el-submenu__title, .el-menu-item{
    >.menu-icon{
      font-size: 16px;
      font-weight: bold;
      margin-right: 6px;
      color: $defaultSubmenuTextColor;
    }
  }
  .el-submenu__title{
    font-weight: bold;
    color: $defaultSubmenuTextColor;
  }
  .is-active{
    background: $defaultActiveBg !important;
  }
}
.el-menu-item:hover{
  background: $defaultActiveBg !important;
  color: $defaultActiveTextColor !important;
}

.hidden-sidebar{
  &.fy-sidebar{
    width: $defaultSideBarMinWidth;
    .el-menu--collapse, .el-menu, .el-submenu{
      width: $defaultSideBarMinWidth !important;
    }
    .el-submenu__title{
      width: $defaultSideBarMinWidth !important;
      > .el-submenu__icon-arrow,
      > .el-icon-arrow-down{
        display: none;
      }
      > span{
        width: 0;
        height: 0;
        display: block;
        overflow: hidden;
      }
    }
  }
}

.el-submenu__title, .el-menu-item{
  height: $defaultMenuItemHeight;
  line-height: $defaultMenuItemHeight;
}
.nest-menu{
  .el-menu-item{
    height: $defaultMenuItemHeight;
    line-height: $defaultMenuItemHeight;
  }
}


.fy-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: $defaultHeaderHeight;
  background: palegoldenrod;
  padding: 0 10px;
  box-sizing: border-box;
}
